package com.hockeo.tinygds.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks a class as being manageable as persistent entity by TinyGDS.
 *
 * @version $Id$
 * @author jjanke
 */
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.TYPE } )
public @interface TEntity
{
  /**
   * Specifies the name that is used in the datastore to refer to this entity type. When
   * this value is not specified the simple name of the persistent class is used.
   */
  String name() default "";
}
